#pragma once
#include "Observer.h"
#include "Notifier.h"



// This class's function is to watch key events and look for the letters to spell the stored word.
//		Note: this function will not work correctly if the stored word has duplicate letters.
class FindWord :
	public Observer
{
public:
	FindWord(void);
	FindWord(string);
	~FindWord(void);
	void notify(event, string);
	bool subscribe(event);
	bool unsubscribe(event);
private:
	int wordsFoundCount;
	char* keyChars;
	int* charCount;
	int wordLength;
};

